<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a href="https://segmentfault.com/a/1190000018614946">nice</a>
<div id="text"/>
</body>

<script>
    let obj = {}
    Object.defineProperty(obj,'name',{
        get(){
            return document.getElementById('text').innerHTML
        },
        set(value){
            document.getElementById('text').innerHTML  = value
        }
    })
    obj.name = "Aaron";
</script>
</html>